<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="../../org/angular.min.js"></script>
</head>

<body ng-app="app" ng-controller="ctrl">
    <jy-show></jy-show>
    <script>
        var m = angular.module('app', []);
        m.directive('jyShow', [function() {
            return {
                restrict: 'E',
                template: '<span>这是模板内容</span>',
                replace: true //true:将template中的内容替换指令所在位置，false嵌入指令内
            }
        }])
        m.controller('ctrl', ['$scope', function($scope) {

        }])
    </script>
</body>

</html>
